<template>
  <div>
    <h1>{{msg}}</h1>
  </div>
</template>

<script>
export default {
  setup(){
    //子组件的setup应返回一个Promise,Promise是异步编程的⼀种解决⽅案
   return  new Promise((resolve,reject)=>{
        setTimeout(()=>{
          resolve(
            {
              msg:"Hello,Real Content!"
            }
          )
        },2000)
      })
    }
   }
</script>

<style>

</style>